package com.bcxj.apiboss.service;

import com.bcxj.apiboss.client.ServiceDriverUserClient;
import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.internalcommon.entity.DriverCarBindingRelationship;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName: DriverCarBindingRelationshipService
 * Package: com.bcxj.apiboss.service
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/10/20 17:09
 * @Version 1.0
 * @Since 1.0
 */
@Service
public class DriverCarBindingRelationshipService {

    @Autowired
    private ServiceDriverUserClient serviceDriverUserClient;

    /**
     * 绑定司机车辆
     * @param driverCarBindingRelationship
     * @return
     */
    public ResponseResult bind(DriverCarBindingRelationship driverCarBindingRelationship) {
        return serviceDriverUserClient.bing(driverCarBindingRelationship);
    }


    /**
     * 解绑司机与车辆关系
     * @param driverCarBindingRelationship
     * @return
     */
    public ResponseResult unBind(DriverCarBindingRelationship driverCarBindingRelationship) {
        return serviceDriverUserClient.unBind(driverCarBindingRelationship);
    }
}
